﻿namespace THSLib
{
    using System;
    using System.Data;

    public class AAColumnAliasController : BaseBusinessController
    {
        private readonly string spGetAAColumnAliasByColumnNameAndTableName = "AAColumnAlias_SelectByColumnNameAndTableName";
        private readonly string spGetAAColumnAliasByTableName = "AAColumnAlias_SelectByTableName";

        public AAColumnAliasController()
        {
            base.dal = new DALBaseProvider("AAColumnAlias", typeof(AAColumnAliasInfo));
        }

        public AAColumnAliasInfo GetAAColumnAliasByColumnNameAndTableName(string strColumnName, string strTableName)
        {
            return (AAColumnAliasInfo) base.dal.GetDataObject(this.spGetAAColumnAliasByColumnNameAndTableName, new object[] { strColumnName, strTableName });
        }

        public DataSet GetAAColumnAliasByTableName(string strTableName)
        {
            return base.dal.GetDataSet(this.spGetAAColumnAliasByTableName, new object[] { strTableName });
        }
    }
}

